import {realURL} from "../request/android.js"


export function queryLocationCheckInDataRe(studentId){
	return new Promise((resolve,reject)=>{
		let rurl = realURL("/signInRecord/queryLocationCheckInDataRe?studentId="+studentId)
		uni.request({
			url:rurl,
			method:"GET",
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
	
}


export function submitLocationRe(dataVO,latitude,longitude){
	let rurl = realURL("/signInRecord/updateLocationStatus?latitude="+latitude +"&longitude="+longitude)
	
	return new Promise((reslove,reject)=>{
		uni.request({
			url:rurl,
			data:dataVO,
			method:"POST",
			success(res) {
				reslove(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}